<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var a=[123,2,3,3,5,5,6]; 
        var b = a.concat(); //concat 表示的浅复制
        console.log(b);
        console.log(a==b);


        var a=[123,2,3,3,5,5,6]; 
        var b = a.concat(1,2,3,4,5,67,78,23); //concat 表示的浅复制

        //concat 传递参数则会添加到原来数组的后端
        console.log(b);
        console.log(a==b);
    </script>
</body>
</html>